<template>
	<div class="mealdetails-container">
	  <!-- 顶部标题 -->
	  <div class="header">
		  <div class="back-btn" @click="goBack">←</div>
	    <h1>选择体检套餐</h1>
	  </div>
	<!-- 体检套餐详情 -->
	<!-- 套餐标题区域 -->
	    <div class="package-header">
	      <h2>男士套餐</h2>
	      <p>普通男士客户-基础套餐</p>
	      <button class="detail-btn">详情 ▾</button>
	    </div>
	
	    <!-- 检查项目表格 -->
	    <table class="item-table">
	      <thead>
	        <tr>
	          <th>检查项目</th>
	          <th>检查内容</th>
	          <th>检查意义</th>
	        </tr>
	      </thead>
	      <tbody>
	        <tr v-for="item in checkItems" :key="item.project">
	          <td>{{ item.project }}</td>
	          <td>{{ item.content }}</td>
	          <td>{{ item.meaning }}</td>
	        </tr>
	      </tbody>
	    </table>
	
	
	
	<!-- 底部导航 -->
	<div class="bottom-nav">
	  <div class="nav-item" :class="{ active: currentNav === 'hospital' }">
	    <span class="nav-icon">🏥</span>
	    <span class="nav-text">云医院</span>
	  </div>
	  <div class="nav-item" :class="{ active: currentNav === 'mall' }">
	    <span class="nav-icon">🛒</span>
	    <span class="nav-text">商城</span>
	  </div>
	  <div class="nav-item" :class="{ active: currentNav === 'discover' }">
	    <span class="nav-icon">🔍</span>
	    <span class="nav-text">发现</span>
	  </div>
	  <div class="nav-item" :class="{ active: currentNav === 'personal' }" @click="goToPersonal">
	    <span class="nav-icon">👤</span>
	    <span class="nav-text">我</span>
	  </div>
	</div>
	 </div>
</template>

<script setup>
import { useRouter } from 'vue-router'
import { ref } from 'vue'

const router = useRouter()

const goBack = () => {
  router.back()
}

const checkItems = ref([
  {
    project: '一般检查',
    content: '血压、身高、体重、腰围、臀围。',
    meaning: '通过仪器测定人体基本健康指标。'
  },
  {
    project: '血常规',
    content: '血常规24项:中性粒细胞计数绝对值、红细胞压值、血小板比容、单核细胞计数',
    meaning: '临床三大常规检测之一，是最基本的血液检验。通过观察血细胞的数量变化及白细胞计数'
  },
  {
    project: '尿常规',
    content: '尿维生素C测定、尿比重测表',
    meaning: '临床三大常规检测之一，可'
  }
])
</script>

<style scoped>
	/* 头部格式 */
	.setmeal-container{
		min-height: 100vh;
		background-color: #f5f5f5;
		padding-bottom: 60px;
	}
	
	.header{
		position: relative;
		background: white;
		padding: 15px;
		text-align: center;
		box-shadow: 0 2px 4px rgba(0,0,0,0.1);
	}
	
	.back-btn{
		position: absolute;
		left: 15px;
		top: 50%;
		transform: translateY(-50%);
		font-size: 18px;
		cursor: pointer;
	}
	
	.header h1 {
	  margin: 0;
	  font-size: 18px;
	  color: #333;
	}
	
	 /* 套餐列表样式 */
	   
	 /* 套餐详情样式 */
	  /* 套餐标题区域 */
	  .package-header {
	    padding: 15px;
	    border-bottom: 1px solid #eee;
	    background: #fff;
	  }
	  .package-header h2 {
	    font-size: 16px;
	    font-weight: bold;
	    margin: 0 0 8px 0;
	  }
	  .package-header p {
	    color: #666;
	    margin: 0 0 10px 0;
	  }
	  .detail-btn {
	    background: transparent;
	    border: none;
	    color: #999;
	    cursor: pointer;
	  }  
	   /* 检查项目表格 */
	   .item-table {
	     flex: 1;
	     width: 100%;
	     border-collapse: collapse;
	     overflow-y: auto;
	   }
	   .item-table th, .item-table td {
	     border: 1px solid #eee;
	     padding: 10px;
	     text-align: left;
	   }
	   .item-table th {
	     background: #f5f5f5;
	     font-weight: bold;
	   } 
		
	/* 底部格式 */
	.bottom-nav {
	  position: fixed;
	  bottom: 0;
	  left: 0;
	  right: 0;
	  background: white;
	  display: flex;
	  justify-content: space-around;
	  padding: 10px 0;
	  border-top: 1px solid #eee;
	}
	
	.nav-item {
	  display: flex;
	  flex-direction: column;
	  align-items: center;
	  cursor: pointer;
	}
	
	.nav-icon {
	  font-size: 20px;
	  margin-bottom: 2px;
	}
	
	.nav-text {
	  font-size: 10px;
	  color: #666;
	}
	
	.nav-item.active .nav-text {
	  color: #1890ff;
	}
</style>